home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 44 / PC Actual CD 44.iso / Linux / Cygwin / full.exe / Disk1 / data1.cab / Tools / H-i586-cygwin32 / i586-cygwin32 / include / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-04  |  680 b   |  32 lines

  1. #ifndef _SIGNAL_H_
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #define _SIGNAL_H_
  6.  
  7. #include "_ansi.h"
  8. #include <sys/signal.h>
  9.  
  10. typedef int    sig_atomic_t;        /* Atomic entity type (ANSI) */
  11.  
  12. #define SIG_DFL ((void (*)(int))0)    /* Default action */
  13. #define SIG_IGN ((void (*)(int))1)    /* Ignore action */
  14. #define SIG_ERR ((void (*)(int))-1)    /* Error return */
  15.  
  16. typedef void (*_sig_func_ptr) (int);
  17.  
  18. struct _reent;
  19.  
  20. _sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
  21. int    _EXFUN(_raise_r, (struct _reent *, int));
  22.  
  23. #ifndef _REENT_ONLY
  24. _sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
  25. int    _EXFUN(raise, (int));
  26. #endif
  27.  
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif /* _SIGNAL_H_ */
  32.